home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / e / misc.txt / 000037_fdc@panix.com_Wed Dec 20 09:47:35 2006.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: reader2.panix.com!reader1.panix.com!panix!not-for-mail
  2. From: Frank da Cruz <fdc@panix.com>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: Macro: Terminal -> Command -> Terminal -> Command?
  5. Date: Wed, 20 Dec 2006 14:47:28 +0000 (UTC)
  6. Organization: PANIX Public Access Internet and UNIX, NYC
  7. Lines: 50
  8. Message-ID: <slrneoij80.b21.fdc@panix1.panix.com>
  9. References: <xwOhh.34809$cz.516497@ursa-nb00s0.nbnet.nb.ca> <lWShh.32651$tb6.31529@news-wrt-01.rdc-nyc.rr.com> <bF8ih.35271$cz.521966@ursa-nb00s0.nbnet.nb.ca>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: panix1.panix.com
  12. X-Trace: reader2.panix.com 1166626048 1735 166.84.1.1 (20 Dec 2006 14:47:28 GMT)
  13. X-Complaints-To: abuse@panix.com
  14. NNTP-Posting-Date: Wed, 20 Dec 2006 14:47:28 +0000 (UTC)
  15. User-Agent: slrn/0.9.8.0 (NetBSD)
  16. Xref: panix comp.protocols.kermit.misc:15607
  17.  
  18. On 2006-12-20, Scott Caissie <scottac@nb.sympatico.ca> wrote:
  19. : I see. I've been testing this out all day, and it works pretty much the way 
  20. : I was aiming for.  I was never referred to using the INPUT command before, 
  21. : and to be honest, I don't understand it 100% yet. I'm basically mirroring my 
  22. : actions.
  23. :
  24. I try to explain it succinctly here:
  25.  
  26.   http://www.columbia.edu/kermit/ckscripts.html#tut
  27.  
  28. : I do have a question. Is there restrictions about using INPUT 0 <text>?
  29. : This example works fine, but if I use INPUT 0 etc, it won't. I check to see 
  30. : if it works by using \Fscrnstr(y,x,n) on a large scale.
  31. :
  32. As far as I know, INPUT 0 should work OK in K95 2.1.3.  I tested it just now,
  33. briefly, and it behaved as expected: succeeds if the text has already arrived
  34. but has not yet been processed, fails if the text is not there.  I don't see
  35. anything in my notes about problems with or fixes to this.
  36.  
  37. Incidentally, INPUT has a bunch of related variables that you might find
  38. useful.  You can see them by typing "show var ^in" (show all the builtin
  39. variables whose names start with "in"):
  40.  
  41.  \v(input) =          The current INPUT buffer contents (circular)
  42.  \v(inchar) =         The character most recently read by INPUT
  43.  \v(incount) = 0      How many chars were read by the most recent INPUT
  44.  \v(inmatch) =        The string that the INPUT command matched
  45.  \v(instatus) = -1    Status of last INPUT command
  46.  \v(intime) = -1      Elapsed time for the most recent INPUT to complete
  47.  \v(inwait) = 0       Time limit specified for most recent INPUT
  48.  
  49. \v(inmatch) is useful with MINPUT, when you are looking for any of a
  50. number of strings to show up, so you know which one you got.  This result
  51. is typically used as a SWITCH control, to process the event.  It's also
  52. useful when using INPUT with \fpattern() to search for a pattern rather
  53. than a literal string, to know what the string was that matched the
  54. pattern.
  55.  
  56. \v(instatus) is:
  57.   0 if INPUT succeeded
  58.   1 if the INPUT command timed out
  59.   2 if the user interrupted the INPUT command from the keyboard
  60.   3 (internal error, shouldn't happen)
  61.   4 i/o error or connection lost.
  62.   5 Kermit server active (INPUT attempted with WIKSD).
  63.  
  64. For more information about the INPUT command, type HELP SET INPUT at the
  65. K-95> prompt.
  66.  
  67. - Frank